package com.echo.im.common.model.message.platform;

import com.echo.im.common.enums.IMPlatformCmdType;
import com.echo.im.common.enums.IMTerminalType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: echo
 * @time: 2024-08-16
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserLogoutMessage implements PlatformMessage {

    private Long userId;

    private List<Integer> terminalList=IMTerminalType.codes();

    public UserLogoutMessage(Long userId) {
        this.userId = userId;
    }

    @Override
    public Integer getType() {
        return IMPlatformCmdType.USER_LOGOUT.code();
    }
}
